package com.gqqx.weather.job;


import com.gqqx.weather.controller.TestClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;



@Component
@EnableScheduling
public class CountJob {

    @Autowired
    private TestClient testClient;

//    @Scheduled(cron = "${weather.ObtainNumber}")
//    public void ObtainNumber(){
//        testClient.ObtainNumber();
//    }
//    public void RequestLogout(){
//        testClient.RequestLogout();
//    }
//
    @Scheduled(cron = "${weather.ObtainWeatherDate}")
    public void ObtainWeatherDate(){
        testClient.ObtainWeatherDate();
    }
//
//    @Scheduled(cron = "weather.RequestWeatherData")
//    public void RequestWeatherData(){
//        TestClient.RequestWeatherData();
//    }

}